﻿using net8.Models.Upload;
using SqlSugar;

namespace net8.Models.ShangPin
{
    /// <summary>
    /// 商品表
    /// </summary>
    public class SpShangPin : Base
    {
        public string Name { get; set; }
        public int Price { get; set; }

        public Guid FileId { get; set; }

        [Navigate(NavigateType.OneToOne, nameof(FileId), nameof(UpFile.Id))]
        public UpFile Image { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(UpRelation.TableId))]
        public List<UpRelation> DetailList { get; set; }
    }
}
